package com.nightpiter.view.graphics.impl;

import android.graphics.PathEffect;

import com.nightpiter.view.graphics.abstaractions.AbstractPathEffect;

public class AndroidPathEffect implements AbstractPathEffect {

	protected PathEffect effect;

	public static com.nightpiter.view.graphics.PathEffect castBack(
			PathEffect effect) {
		return new com.nightpiter.view.graphics.PathEffect(
				new AndroidPathEffect(effect));
	}

	public static PathEffect cast(
			com.nightpiter.view.graphics.PathEffect aEffect) {
		if (aEffect == null)
			return null;
		return ((AndroidPathEffect) aEffect.getDelegate()).getEffect();
	}

	public AndroidPathEffect(PathEffect effect) {
		this.effect = effect;
	}

	public PathEffect getEffect() {
		return effect;
	}
}
